<%-- 
    Document   : item-detail
    Created on : 10-11-2012, 22:19:09
    Author     : Tran Nguyen Anh Tu
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<div style="margin: 70px auto auto 70px;">
    <table>
        <tr>
            <td style="width: 260px">
                <img  src="${itemdetail_coverimg}" height="210px" width="210px" border="0">
            </td>
            <td style="width: 140px; text-align: right;">
                <b>
                Nhóm: <br/>
                Tên:<br/>
                Thể loại:<br/>
                Tác giả:<br/>            
                Số trang:<br/>
                Nhà xuất bản:<br/>
                Ngày xuất bản: <br/>
                Dịch giả:<br/>
                Giá:<br/>
                Tình trạng:
                </b>
            </td>
            <td style="width: 500px">
                ${itemdetail_group} <br/>
                ${itemdetail_label} <br/>
                ${itemdetail_category} <br/>
                ${itemdetail_author} <br/>
                ${itemdetail_pagenumber} <br/>
                ${itemdetail_publisher} <br/>
                ${itemdetail_publishdate} <br/>
                ${itemdetail_translator} <br/>
                ${itemdetail_price} <br/>
                ${itemdetail_instock}
            </td>
        </tr>
        <tr>
            <td colspan="2" style="vertical-align: top;text-align: right;">
                <b>Giới thiệu:<br/></b>
            </td>
            <td >
                ${itemdetail_introduce} <br/>
            </td>
        </tr>
        <tr>
            <td></td>
            <td>
                <input type="button" value="Trở về trang trước" onclick="history.back()"/><br/>
            </td>
            <td >
                <center>
                    <% if(request.getAttribute("itemdetail_instock").equals("Còn hàng")){ %>
                    <a href="CartServlet?resourceID=${itemdetail_reid}"><img src="Resources/cart-icon.jpg"></a>
                    <% } %>
                </center>        
            </td>
        </tr>    
    </table>
</div>